using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Club
{
    public class WebCommon
    {
        public const string EMPTY_DATA = "Empty Data.";
       
        public static void ShowMsg(HttpResponse aRep, string aMsg)
        {
            aRep.Write("<script language='javascript'>");
            aRep.Write("alert('" + aMsg.Replace("'","''") + "');");
            aRep.Write("</script>");
        }

        public static void OpenWindow(HttpResponse aRep, string aFilePath, string aTarget)
        {
            aRep.Write("<script language='javascript' type='text/javascript'>");
            aRep.Write("window.open('" + aFilePath+"',null,'height=700,width=700,status=yes,toolbar=no,menubar=no,location=no');");
            aRep.Write("</script>");
        }
    }
}
